package com.bawei.livedata.reflect;

import android.util.Log;

/**
 * @Author : yaotianxue
 * @Time : On 2023/9/12 15:26
 * @Description : Student
 */
public class Student {
    //属性
    private String name;
    public int age;
    //构造
    private Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    private Student(){

    }
    //方法
    public void study(String name){
        Log.d("ytx", "study: "+name);
    }

    private String getName(){
        return name;
    }

    private String getName(String sex){
        return name+sex;
    }
}
